# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-face-recognition
_pkgname=face_recognition
pkgver=1.3.0
pkgrel=7
pkgdesc="The world's simplest facial recognition api for Python and the command line."
arch=('any')
url='https://pypi.org/project/face_recognition/#files'
depends=('python-click' 'python-dlib' 'python-face-recognition-models'
         'python-numpy' 'python-pillow' 'python-scipy')
makedepends=('python-setuptools')
license=('MIT')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/face_recognition-$pkgver.tar.gz")
sha512sums=('344e83f69160bced6da358360a42e124530a46f4e1c5a4c8a4b250ad45f99498aece4b870bf85e3e15fc0f5da28afd3dfc780c2bef7f2a37ec74060b2547456c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {

  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

